<!--
  @author nowind
  @since 2018/10/19 08:59
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common :: jscss">
    <title>试点配置/城市配置</title>
</head>
<body>

<div class="layui-fluid">

    <blockquote class="layui-crumb">
        基础数据PLAT/试点配置/城市配置
    </blockquote>

    <div class="layui-card">

        <div class="layui-split">&nbsp;</div>

        <form method="post" id="pageForm" action="/pilot/city/list.action">
            <div class="layui-form" th:include="pilot/city/_query :: query "></div>
        </form>

        <div class="layui-card-body">
            <div th:replace="pilot/city/_table::table"></div>
            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/pilot/city/modifyStatus.action')}">
                            <button class="layui-btn layui-btn-sm" lay-event="start">启用</button>
                            <button class="layui-btn layui-btn-sm" lay-event="stop">停用</button>
                        </zmn>
                    </div>
                    <div class="layui-btn-group">
                        <zmn th:if="${#authPermit.checkPermit('/pilot/city/addEdit.action')}">
                            <button class="layui-btn layui-btn-sm layui-btn-primary" lay-href="/pilot/city/add.action"
                                    lay-text="新增">+新增
                            </button>
                        </zmn>
                    </div>
                </div>
            </script>
            <div id="page"></div>
        </div>

    </div>

</div>

<script type="text/javascript" th:inline="javascript">

    var json = {
        hasViewEdit: [[${#authPermit.checkPermit('/pilot/city/addEdit.action')}]],
        hasDel: [[${#authPermit.checkPermit('/pilot/city/del.action')}]],
        totalCount: [[${vo.totalCount}]],
        pageSize: [[${vo.pageSize}]],
        pageIndex: [[${vo.pageIndex}]],
        items: [[${items}]]
    };

    layui.config({
        base: "/static/lay/",
        version: 202009161731
    }).extend({
        index: "lib/index",
        pilot_city_list: "/pilot/city/zmn.plat.pilot.city.list",
    }).use(['index', 'pilot_city_list']);

</script>
</body>
</html>